package com.jhws.business.card.bo;

import java.util.HashMap;
import java.util.Map;

public class CardConstant {
    /* IC 卡 */
    public static final String CARD_TYPE_NORMAL = "n";
    public static final String CARD_TYPE_SUPPER = "s";

    public static final String CARD_PERM_BLACKLIST = "N";
    public static final String CARD_PERM_NORMAL = "Y";
    public static final String CARD_PERM_WHITELIST = "R";
    public static final String CARD_PERM_EXPIRE = "E";

    /* IC 卡厂家模块型号 */
    public static final Integer CARD_VENDOR_GS_IC = 0; //高深智能IC卡
    public static final Integer CARD_VENDOR_LK_IC = 10; //莱卡IC
    public static final Integer CARD_VENDOR_LK_ID = 11; //莱卡身份证模块

    public static Map cardVendors(){
        Map<Integer,String> map = new HashMap<Integer,String>();
        map.put(CARD_VENDOR_GS_IC,"高深智能IC模块(只支持IE插件)");
        map.put(CARD_VENDOR_LK_IC,"莱卡IC模块(M2)(支持任意浏览器,不能用于A20)");
        map.put(CARD_VENDOR_LK_ID,"莱卡身份证/IC模块(M9)");
        return map;
    }

    /* IC 卡秘钥前缀 */
    public static final String CARD_SECURITY_JHCLOUD_PREFIX = "000000cd"; //家和平台
    public static final String CARD_SECURITY_PLATFORM_PREFIX = "d3f001cd"; //SDK平台
    public static final String CARD_SECURITY_TIANZHU_PREFIX = "d3f002cd"; // 北京天竺平台

    /* IC卡当前状态，与卡权限是一一对应的,前三个状态值没有统一 */
    public static final String CARD_STATUS_ENABLED = "01";
    public static final String CARD_STATUS_DISABLED = "02";
    public static final String CARD_STATUS_RESUME = "03";
    public static final String CARD_STATUS_EXPIRE = CARD_PERM_EXPIRE;

    /* 进出门状态 */
    public static final Integer CARD_IN = 0;
    public static final Integer CARD_OUT = 1;

    public static final String REDIS_CARD_TIMESTAMP = "cardblkTimeStamp";
}
